package ex.hql.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ex.hql.pojo.MenuRole;
import ex.hql.pojo.RespBean;
import org.springframework.data.repository.query.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hql
 * @since 2021-08-19
 */
public interface MenuRoleMapper extends BaseMapper<MenuRole> {

    /**
     * 更新角色菜单
     * @param rid
     * @param mid
     * @return
     */
    RespBean updateMenuRole(Integer rid, Integer[] mid);


    /**
     * 批量更新角色菜单
     * @param rid
     * @param mids
     */
    Integer insertRecord(@Param("rid") Integer rid,@Param("mids") Integer[] mids);
}
